<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>{SGub_Title}</title>
<link rel="stylesheet" href="../../css/mem_report.css" type="text/css">
<script language="JavaScript" src="/inc/admin_envirset.js"></script>
<script language="JavaScript">
<!--
strRowClassName = "crig";

function Account(intSID, intMID){
	with(document.AccountForm){
		StockID.value = intSID;
		MainID.value = intMID;
		submit();
	}
}

function BetSupple(intMID){
	with(document.BetForm){
		WagerType.value = "4";
		MemID.value = intMID;
		submit();
	}
}
//-->
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
<form action="index.php" method="get" name="AccountForm">
	<input type="hidden" name="op" value="List">
	<input type="hidden" name="StockID" value="">
	<input type="hidden" name="MainID" value="">
	<input type="hidden" name="Types" value="{Show_Types}">
	<input type="hidden" name="LottoID" value="{Show_LottoID}">
	<input type="hidden" name="GambleID" value="{Show_GambleID}">
	<input type="hidden" name="Bet_Type" value="{Show_Bet_Type}">
	<input type="hidden" name="PayupDate_0" value="{Show_PayupDate_0}">
	<input type="hidden" name="PayupDate_1" value="{Show_PayupDate_1}">
</form>

<form action="Bet_List.php" method="get" name="BetForm">
	<input type="hidden" name="op" value="List">
	<input type="hidden" name="Types" value="Stocks">
	<input type="hidden" name="MemID" value="">
	<input type="hidden" name="LottoID" value="{Show_LottoID}">
	<input type="hidden" name="GambleID" value="{Show_GambleID}">
	<input type="hidden" name="Bet_Type" value="{Show_Bet_Type}">
	<input type="hidden" name="PayupDate_0" value="{Show_PayupDate_0}">
	<input type="hidden" name="PayupDate_1" value="{Show_PayupDate_1}">
	<input type="hidden" name="WagerType" value="0">
</form>

<table width="770" border="0" cellspacing="0" cellpadding="0" class="cmti">
  <tr> 
    <td>{SGub_Title} -- {List_Lotto} : {LottoContent} -- {List_BetDate} : {Show_PayupDate_0} ~ {Show_PayupDate_1} -- {List_BetType} : {BetTypeContent} 
      <input type="button" value="{Search}" class="zabutton" onclick="location.href='Stock_index.php?op=Search'">
    </td>
  </tr>
</table>
<div class="ctabdv"> 
  <table border="0" cellspacing="1" cellpadding="0" class="ctab">
    <tr class="ctiport"> 
      <td width="100">{GAgent_Result}</td>
      <td width="40">{Bet_No}</td>
      <td width="70">{Bet_Stakes}</td>
      <td width="70">{Member}</td>
      <td width="70">{Agent_Result}</td>
      <td width="70">{GAgent_Result}</td>
	  <td width="70">{Stock}</td>
      <td width="30">{Bet_Ratio}</td>
	  <td width="70">{Stock_RateWin}</td>
	  <td width="70">{Stock_Comm}</td>
      <td width="70">{Stock_Win}</td>
      <td width="30">{Bet_Ratio}</td>
      <td width="75">{Real_Stakes}</td>
      <td width="70">{Stock_Result}</td>
    </tr>
<!--@ GAgentResult Start @//-->
    <tr class="crig">
      <td align="left">{Show_GAgent}</td>
      <td>{totals}</td>
      <td><a href="JavaScript:Account('{Show_StockID}','{Show_MainID}')">{MemStake}</a></td>
      <td>{SubIncome}</td>
      <td style="background-color: #FFD9D9;">{SubRateResult}</td>
      <td style="background-color: #FFD9D9;">{MainRateResult}</td>
	  <td style="background-color: #BAC5EF;">{StockResult}</td>
      <td style="background-color: #BAC5EF;">{StockMainRate}</td>
	  <td style="background-color: #BAC5EF;">{StockRateWin}</td>
	  <td style="background-color: #BAC5EF;">{StockComm}</td>
      <td style="background-color: #BAC5EF;">{StockWin}</td>
      <td style="background-color: #FFFFB3;">{StockRate}</td>
      <td style="background-color: #FFFFB3;">{realMemStake}</td>
      <td style="background-color: #FFFFB3;">{StockRateResult}</td>
    </tr>
<!--@ GAgentResult End @//-->
<!--@ ShareholderResult Start @//-->
    <tr class="cmsto">
      <td>{Sum}</td>
      <td>{sumtotals}</td>
      <td>{sumMemStake}</td>
      <td>{sumSubIncome}</td>
      <td>{sumSubRateResult}</td>
      <td>{sumMainRateResult}</td>
	  <td>{sumStockResult}</td>
      <td>&nbsp;</td>
	  <td>{sumStockRateWin}</td>
	  <td>{sumStockComm}</td>
      <td>{sumStockWin}</td>
      <td>&nbsp;</td>
      <td>{sumrealMemStake}</td>
      <td>{sumStockRateResult}</td>
    </tr>
<!--@ ShareholderResult End @//-->

    <tr class="crig">
      <td colspan="15">&nbsp;</td>
    </tr>
    <tr class="ctiport">
      <td colspan="15">{Supple_Title}</td>
    </tr>
    <tr class="ctiport"> 
      <td width="100">{Stock}</td>
      <td width="40">{Bet_No}</td>
      <td width="70">{Bet_Stakes}</td>
      <td width="70">{Member}</td>
      <td width="70">{Agent_Result}</td>
      <td width="70">{GAgent_Result}</td>
	  <td width="70">{Stock}</td>
      <td width="30">{Bet_Ratio}</td>
	  <td width="70">{Stock_RateWin}</td>
	  <td width="70">{Stock_Comm}</td>
      <td width="70">{Stock_Win}</td>
      <td width="30">{Bet_Ratio}</td>
      <td width="75">{Real_Stakes}</td>
      <td width="70">{Stock_Result}</td>
    </tr>
<!--@ SuppleGAgentResult Start @//-->
    <tr class="crig">
      <td align="left">{Show_GAgent}</td>
      <td>{totals}</td>
      <td><a href="JavaScript:BetSupple('{Show_StockID}')">{MemStake}</a></td>
      <td>{SubIncome}</td>
      <td style="background-color: #FFD9D9;">{SubRateResult}</td>
      <td style="background-color: #FFD9D9;">{MainRateResult}</td>
	  <td style="background-color: #BAC5EF;">{StockResult}</td>
      <td style="background-color: #BAC5EF;">{StockMainRate}</td>
	  <td style="background-color: #BAC5EF;">{StockRateWin}</td>
	  <td style="background-color: #BAC5EF;">{StockComm}</td>
      <td style="background-color: #BAC5EF;">{StockWin}</td>
      <td style="background-color: #FFFFB3;">{StockRate}</td>
      <td style="background-color: #FFFFB3;">{realMemStake}</td>
      <td style="background-color: #FFFFB3;">{StockRateResult}</td>
    </tr>
<!--@ SuppleGAgentResult End @//-->
<!--@ SuppleShareholderResult Start @//-->
    <tr class="cmsto">
      <td>{Sum}</td>
      <td>{sumtotals}</td>
      <td>{sumMemStake}</td>
      <td>{sumSubIncome}</td>
      <td>{sumSubRateResult}</td>
      <td>{sumMainRateResult}</td>
	  <td>{sumStockResult}</td>
      <td>&nbsp;</td>
	  <td>{sumStockRateWin}</td>
	  <td>{sumStockComm}</td>
      <td>{sumStockWin}</td>
      <td>&nbsp;</td>
      <td>{sumrealMemStake}</td>
      <td>{sumStockRateResult}</td>
    </tr>
<!--@ SuppleShareholderResult End @//-->

    <tr class="crig">
      <td colspan="15">&nbsp;</td>
    </tr>
    <tr class="ctiport">
      <td colspan="15">{Sum}</td>
    </tr>
<!--@ ALLResult Start @//-->
    <tr class="cmto"> 
      <td>{Sum}</td>
      <td>{Ctotals}</td>
      <td>{CMemStake}</td>
      <td>{CSubIncome}</td>
      <td>{CSubRateResult}</td>
      <td>{CMainRateResult}</td>
      <td>{CStockResult}</td>
      <td>&nbsp;</td>
	  <td>{CStockRateWin}</td>
	  <td>{CStockComm}</td>
      <td>{CStockWin}</td>
      <td>&nbsp;</td>
      <td>{CrealMemStake}</td>
      <td style="background-color: #FF0000;">{CStockRateResult}</td>
    </tr>
<!--@ ALLResult End @//-->
  </table>
</div>
</body>
</html>
